Crate html5ever_arena_dom
source ·Expand description
A simple library to parse templates, and tidy them up using html5ever.
This library simply extracts and combines two usage examples of html5ever, and makes them re-usable. It is mostly meant to be used with template engines such as Askama or nate, which use fmt::Write to output their generated HTML data.
Structs
- An HTML document tree that uses a typed arena to store its nodes.
Functions
- Render a template into a writer, e.g. a
Vec<u8>
.
Type Definitions
- Allocator for nodes in the HTML to render.
- A (serializable) reference to a node in the HTML to render.